<template>
  <div>
    <button @click="boolean = !boolean">按钮</button>
    <h1 v-if="boolean">天下无敌</h1>
    <h1 v-show="boolean">天上来敌</h1>
  </div>
</template>

<script>
export default {
  data() {
    return {
      boolean: truvuee,
    };
  },
};
</script>

<style scoped></style>
